package com.woniuxy.project115.kaer.platform.service;

import com.woniuxy.project115.kaer.platform.Param.ApproveParam;
import com.woniuxy.project115.kaer.platform.dto.AccountDto;
import com.woniuxy.project115.kaer.platform.dto.LoginDto;
import com.woniuxy.project115.kaer.platform.entity.Account;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.project115.kaer.tenant.dto.SettledApplicationDto;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fyy
 * @since 2025年02月23日
 */
public interface AccountService extends IService<Account> {

    void addAdmin(String userName, String passWord)throws Exception;

    LoginDto login(String username, String password, HttpServletRequest req)throws Exception;

    void agreeApply(ApproveParam param)throws Exception;

    List<SettledApplicationDto> queryApply()throws Exception;

    List<AccountDto> getAllAdmin();

    void deleteAdmin(String id)throws Exception;
}
